<?php
session_start();
include "../mysql_connect.php";
include "../inc/chec.php";
include "../inc/func.php";
$l_sql = "select id,l_title,l_content,l_time,is_reply,r_back from tb_lyb order by id desc";
$l_rst = mysql_query($l_sql,$dbc);
?>
<?php 
include("header.html");
?>
<?php 
include("left.html");
?>
<div  style=" float:left;width:700px;height:550px; background-color:#DEEBEF; margin:50px;">
    <span style=" text-align:center">注意事项</span>
   <p style="height:100px; text-align:left;">
	如果对公司有好的建议或意见，请在这里提出。此处发言，完全为匿名，请不要有任何顾虑~
	<font color=red>注意：不允许进行人身攻击。否则删帖!!</font>
   </p>

<?php
	while($l_rows = mysql_fetch_array($l_rst)){
?>  
 <p style="width:700px;height:20px; background-color:red;">
	<?php echo $l_rows[l_time]; ?>
  <span style="text-align:left;"
	主题：<?php echo $l_rows[l_title]; ?>
  </span>
 
	<a href="t_back.php?id=<?php echo $l_rows[id]; ?>">回复</a>&nbsp;&nbsp;<a href="del_ly_chk.php?id=<?php echo $l_rows[id]; ?>" onclick="return del_mess()">删除</a>
	<?php }
	 ?>&nbsp;
	</p>
    <span style="text-align:left; height:70px;">
	<?php echo $l_rows[l_content]; ?>
	</span>
<?php
	if($l_rows[is_reply] == 1){
?>
      <span style="text-align:left; height:70px;" onmouseover="this.style.backgroundColor='#FFEEBC'" onmouseout="this.style.backgroundColor=''">
	<font color="#FF0000">
	<?php
		echo $l_rows[r_back];
	?>
	</font>
	</span>
<?php
	}
?>
<form id="lyb" name="lyb" method="post" action="lyb_chk.php">
  <p>
    <span style="height:30px; width:15%; text-align:left;">主题：</span>
    <span style="height:30px; text-align:left;"><input type="text" name="l_title" size="30"></span>
  </p>
  <p>
  	<span style="height:30px; text-align:left;">内容：</span>
    <span style="height:150px;"><textarea name="l_content" cols="75" rows="10"></textarea></span>
  </p>
    <span style="height:30px; text-align:left;">
	<input type="submit" value="提交" onclick="return add_lyb();">&nbsp;&nbsp;<input  type="reset" value="重置">
	</span>
</form>
</div>
<div style="clear:both;"></div>
<?php 
include("footer.html");
?>